package com.example.easydemo01.controller;

import com.example.easydemo01.mapper.userMapper;
import com.example.easydemo01.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class userController {

    @Autowired
    private userMapper userMapper;

    @GetMapping("/getUserById")
    public User getUserById(String  id){
        return userMapper.getUserById(id);
    }


}
